#!/usr/bin/python3
# ******************************************************************************
# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
# licensed under the Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#     http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
# PURPOSE.
# See the Mulan PSL v2 for more details.
# ******************************************************************************/


class BuildVerify:
    """
    软件包编译检查
    """

    def build(self, source):
        """
        软件包编译
        :param source: 源码包，可以是单个源码包或多个源码包列表
        :return: 编译的结果
        """
        pass

    def query_build(self, package, log=False):
        """
        查询软件包的编译结果或log日志信息
        :param package: 软件包
        :param log: log日志详细信息
        :return: 软件包的编译结果或log日志内容
        """
        pass
